<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<title>
	Admin Login
</title>
<script>
function validate() {
	if (document.forms[0].username.value == '') {
		alert('Please enter the username.');
		document.forms[0].username.focus();
		return false;
	}
	if (document.forms[0].password.value == '') {
		alert('Please enter the username.');
		document.forms[0].password.focus();
		return false;
	}
	return true;
}

</script>
</head>
<body>

<form action="LoginController.php" method="post" onsubmit="return validate();">
<table>
	<tr>
		<td colspan="2" class="errorLabel">
			<?php
				if ($_GET['error'] != '') {
					echo $_GET['error'];
				} 
			?>
		</td>
	</tr>
	<tr>
		<td class="labelClass">
			Username:
		</td>
		<td>
			<input type="text" name="username" />
		</td>
	</tr>
	<tr>
		<td class="labelClass">
			Password:
		</td>
		<td>
			 <input type="text" name="password" />
		</td>
	</tr>
	<tr>
		<td>
			<input type="submit" value="Login"/>
		</td>
	</tr>
</table>
</form>

</body>
</html>